@echo off

echo Check if .NET Framework installed or not...

 IF EXIST "%systemroot%\Microsoft.NET\Framework\v4.5*" GOTO Pass
 IF EXIST "%systemroot%\Microsoft.NET\Framework\v4.0*" GOTO Pass
 IF EXIST "%systemroot%\Microsoft.NET\Framework\v3.5*" GOTO Pass
 IF EXIST "%systemroot%\Microsoft.NET\Framework\v3.0*" GOTO Pass
 IF EXIST "%systemroot%\Microsoft.NET\Framework\v2.0*" GOTO Pass

 :Fail
  cscript inc\warning.vbs "Need .NET Framework2.0 or above! GoWrapper will not be started. Please install .NET Framework first!"
  cscript inc\openurl.vbs "http://www.microsoft.com/zh-cn/download/details.aspx?id=21"
  exit

 :Pass